package org.mspring.mlog.dao.impl;

import org.mspring.mlog.dao.RoleNodeEntityDao;
import org.mspring.mlog.entity.RoleNodeEntity;
import org.mspring.nbee.db.dao.impl.BaseDao;
import org.mspring.nbee.db.dao.sql.Sql;
import org.springframework.stereotype.Repository;

/**
 * @author Gao Youbo
 * @since 2015-01-02 14:28
 */
@Repository
public class RoleNodeEntityDaoImpl extends BaseDao<RoleNodeEntity> implements RoleNodeEntityDao {
    @Override
    public boolean deleteAll() {
        Sql sql = new Sql("delete from t_role_node");
        return super.executeUpdate(sql) > 0;
    }
}
